package com.szrt.socket.ch01.inetaddress.demo01;

import static org.junit.Assert.*;

import java.net.InetAddress;

import org.junit.Test;

public class SocketTest {
	
	@Test
	public void getIpAddress() throws Exception {
		InetAddress ip=InetAddress.getByName("www.baidu.com");
		System.out.println(ip);
		System.out.println(ip.getHostAddress());
		
	}
	
	

}
